package top.yunmouren.areamusic.config;

public class MusicDto {
    private String uuid;
    private String musicId;
    private String musicURL;
    private Long musicDuration;

    public static MusicDtoBuilder builder() {
        return new MusicDtoBuilder();
    }

    public String getUuid() {
        return this.uuid;
    }

    public String getMusicId() {
        return this.musicId;
    }

    public String getMusicURL() {
        return this.musicURL;
    }

    public Long getMusicDuration() {
        return this.musicDuration;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public void setMusicId(String musicId) {
        this.musicId = musicId;
    }

    public void setMusicURL(String musicURL) {
        this.musicURL = musicURL;
    }

    public void setMusicDuration(Long musicDuration) {
        this.musicDuration = musicDuration;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof MusicDto)) {
            return false;
        } else {
            MusicDto other = (MusicDto)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label59: {
                    Object this$musicDuration = this.getMusicDuration();
                    Object other$musicDuration = other.getMusicDuration();
                    if (this$musicDuration == null) {
                        if (other$musicDuration == null) {
                            break label59;
                        }
                    } else if (this$musicDuration.equals(other$musicDuration)) {
                        break label59;
                    }

                    return false;
                }

                Object this$uuid = this.getUuid();
                Object other$uuid = other.getUuid();
                if (this$uuid == null) {
                    if (other$uuid != null) {
                        return false;
                    }
                } else if (!this$uuid.equals(other$uuid)) {
                    return false;
                }

                Object this$musicId = this.getMusicId();
                Object other$musicId = other.getMusicId();
                if (this$musicId == null) {
                    if (other$musicId != null) {
                        return false;
                    }
                } else if (!this$musicId.equals(other$musicId)) {
                    return false;
                }

                Object this$musicURL = this.getMusicURL();
                Object other$musicURL = other.getMusicURL();
                if (this$musicURL == null) {
                    if (other$musicURL != null) {
                        return false;
                    }
                } else if (!this$musicURL.equals(other$musicURL)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof MusicDto;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $musicDuration = this.getMusicDuration();
        result = result * 59 + ($musicDuration == null ? 43 : $musicDuration.hashCode());
        Object $uuid = this.getUuid();
        result = result * 59 + ($uuid == null ? 43 : $uuid.hashCode());
        Object $musicId = this.getMusicId();
        result = result * 59 + ($musicId == null ? 43 : $musicId.hashCode());
        Object $musicURL = this.getMusicURL();
        result = result * 59 + ($musicURL == null ? 43 : $musicURL.hashCode());
        return result;
    }

    public MusicDto() {
    }

    public MusicDto(String uuid, String musicId, String musicURL, Long musicDuration) {
        this.uuid = uuid;
        this.musicId = musicId;
        this.musicURL = musicURL;
        this.musicDuration = musicDuration;
    }

    public String toString() {
        return "MusicDto(uuid=" + this.getUuid() + ", musicId=" + this.getMusicId() + ", musicURL=" + this.getMusicURL() + ", musicDuration=" + this.getMusicDuration() + ")";
    }

    public static class MusicDtoBuilder {
        private String uuid;
        private String musicId;
        private String musicURL;
        private Long musicDuration;

        MusicDtoBuilder() {
        }

        public MusicDtoBuilder uuid(String uuid) {
            this.uuid = uuid;
            return this;
        }

        public MusicDtoBuilder musicId(String musicId) {
            this.musicId = musicId;
            return this;
        }

        public MusicDtoBuilder musicURL(String musicURL) {
            this.musicURL = musicURL;
            return this;
        }

        public MusicDtoBuilder musicDuration(Long musicDuration) {
            this.musicDuration = musicDuration;
            return this;
        }

        public MusicDto build() {
            return new MusicDto(this.uuid, this.musicId, this.musicURL, this.musicDuration);
        }

        public String toString() {
            return "MusicDto.MusicDtoBuilder(uuid=" + this.uuid + ", musicId=" + this.musicId + ", musicURL=" + this.musicURL + ", musicDuration=" + this.musicDuration + ")";
        }
    }
}
